package sandan.gyl.base.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.Set;

import sandan.gyl.query.BaseQuery;
import sandan.gyl.query.PageResult;

public interface BaseService<T> {
	public PageResult<T> getPageResult(final BaseQuery baseQuery);

	public void saveEntry(T t);

	public void updateEntry(T t);

	public T getEntryById(Serializable id);

	public Set<T> getEntriesByIds(Serializable[] ids);

	public void deleteEntriesByIds(Serializable[] ids);

	public void deleteEntryById(Serializable id);

	public Collection<T> getEntries();
}
